<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Transitions Test: transition-property - vertical-align</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com">
<link rel="help" title="7.1. Properties from CSS" href="http://www.w3.org/TR/css3-transitions/#animatable-css">
<meta name="flags" content="interact">
<meta name="assert" content="Test checks that the 'vertical-align' property is animatable.">
<style>
  #test {
    transition-duration: 2s;
    transition-property: vertical-align;
    transition-timing-function: linear;
    vertical-align: top;
  }
</style>
<body>
  <p>Click the cat image below. Test passes if the 'FillerText' moves down to the bottom of the cat image gradually not immediately.</p>
  <div id="test">
    FillerText<image id="ref" src="support/cat.png"></image>
  </div>
  <script>
    (function() {
      var ref = document.querySelector("#ref");
      ref.addEventListener("click", function(evt) {
        document.querySelector("#test").setAttribute("style", "vertical-align: bottom;");
      }, false);
    })();
  </script>
</body>
